package com.lastproject.ejb.dao;

import java.util.List;

import javax.ejb.Remote;
import com.lastproject.dto.ReviewDTO;

@Remote
public interface ReviewDAORemote {
	
	boolean create(boolean hasPermission, ReviewDTO entity);
	
	boolean edit(boolean hasPermission, ReviewDTO entity);
	
	boolean remove(boolean hasPermission, ReviewDTO entity);
	
	ReviewDTO findByID(Object id);
	
	List<ReviewDTO> findAll();

	List<ReviewDTO> getReviewsByBookId(int id);

}
